FROM docker-hub.eggcode.top:5443/common/zulu-openjdk-alpine:11-jre

MAINTAINER dingjiaqi ding.jiaqi@outlook.com

RUN apk add --no-cache tzdata

ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"

RUN mkdir -p /cloud/gateway

WORKDIR /cloud/gateway

ADD ./target/*.jar ./app.jar

EXPOSE 8080

ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-Dfile.encoding=utf-8", "-jar", "app.jar"]

CMD ["--spring.profiles.active=dev", "-Xms128m", "-Xmx256m"]